package com.qf.service.impl;

import com.qf.mapper.UserRoleMapper;
import com.qf.pojo.UserRole;
import com.qf.service.UserRoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class UserRoleServiceImpl implements UserRoleService {
    @Resource
    UserRoleMapper userRoleMapper;
    @Override
    public List<UserRole> findAll() {
        return userRoleMapper.findAll();
    }

    @Override
    public int add(UserRole userRole) {
        return userRoleMapper.add(userRole);
    }

    @Override
    public int update(UserRole userRole) {
        return userRoleMapper.update(userRole);
    }

    @Override
    public int delete(int urid) {
        return userRoleMapper.delete(urid);
    }

    @Override
    public UserRole findByUrid(Integer urid) {
        return userRoleMapper.findByUrid(urid);
    }
}
